Other Parts Discussed in Thread: AM6548
Hi Forum!
I have a working U-Boot/Linux image that I created with Buildroot. It produces a direct disk image, sdcard.img. I can then install the boot partition and rootfs directly using the following:
sudo dd if=./sdcard.img of=/dev/mmcblk0 bs=1M
In the above example, /dev/mmcblk0 is how my SD card shows up in Ubuntu when I insert it via an adapter card, and can be shown using lsblk.
sdcard.img was created using genimage, and contains a small VFAT partition with sysfw.itb, tiboot3.bin, tispl.bin, u-boot.img, uEnv.txt, Image, and my dtb file. There is also a larger rootfs partition formatted as ext4. For those who have used genimage, here is my genimage.cfg file content:
image boot.vfat { vfat { files = { "sysfw.itb", "tiboot3.bin", "tispl.bin", "u-boot.img", "uEnv.txt", "Image", "k3-am654-reflex3-board.dtb" } } size = 70M } image sdcard.img { hdimage { } partition u-boot { partition-type = 0xC bootable = "true" image = "boot.vfat" } partition rootfs { partition-type = 0x83 image = "rootfs.ext4" size = 1G } }
The uSD card is connected to the MMC1 interface. We also have an 8GB eMMC connected to the MMC0 interface on our custom board, and I would like to know how to install the boot and rootfs images onto eMMC, so that I can bypass booting from SD card in the future.
Can anyone provide steps for partitioning, formatting, and booting from eMMC, especially once a working uSD card has been created? Are any changes required to create an image that can boot from eMMC vs. uSD card?
I also know there are bootmode jumpers on the AM6548. Do they have to be modified in order to boot from eMMC instead of uSD card? If so, how should they be set? I'd like to boot from uSD card if it's available, then fall back to booting from eMMC if no uSD card is present.
Thanks for your help, and please let me know if any clarification is needed.
Best regards,
Scott